package com.csst.business.dao;


import java.util.List;

import com.csst.business.model.TNews;
import com.csst.business.model.TPhotoGroup;
import com.csst.business.model.TPhotos;
import com.csst.business.model.TTrUser;
import com.csst.popular.bean.message.NewsMessage.News;

public interface IPhotoDao extends BaseDao {

	public int getOrderTotle();

	public List<TPhotoGroup> getPhotoGroupList(int startNum, int endNum);

	public void saveGroup(TPhotoGroup photog);

	public void updateGroup(TPhotoGroup photog); 

	public void delteGroup(String gid);

	public TPhotoGroup getPhotoGById(String id);
 
	public void savePhoto(TPhotos photo);
 

	public List<TPhotos> getPhotosBypgId(String gid, int startNum, int endNum);

	public int getPhotoTotle(String gid);

	public void deltephoto(String gid);

	public TPhotos getPhotoById(String gid);

	public boolean hasChildPhoto(String gid);     
	
}
